package com.swan.views;

import java.io.IOException;

import com.swan.App;

import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;

/**
 * MainApplication
 * @author xyh
 * @date 20230426
 *
 */
public class MainApplication {

	public void mainStage(String mainStage) throws IOException {
		Pane root = FXMLLoader.load(App.class.getResource(mainStage+"Main.fxml"));
		Scene scene = new Scene(root);
		Stage stage = new Stage();
		stage.setTitle("Class Management System");
		stage.setScene(scene);
		stage.show();
	}

}
